Auto merge of #4496 - rwakulszowa:infer_from_subdirectories, r=matklad
authorbors <bors@rust-lang.org>
Mon, 18 Sep 2017 12:05:05 +0000 (12:05 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Sep 2017 12:05:05 +0000 (12:05 +0000)
commit7619c50e913ce75e73facc8d7caa9fbf00406f4e
tree45bb0ae316d783c6ade6e96978e3dc57145b0fff
parent525323feaa44e1c2756a37157c3e35e342d66d18
parent6b94ed2238a3f378cfe4fda47922cef0908a942c
Auto merge of #4496 - rwakulszowa:infer_from_subdirectories, r=matklad

Infer targets from subdirectories

Fixes #4086

I still have a few questions:
- should I add some tests for the old behaviour? It isn't really tested at the moment (no tests failed when I broke the implementation); I could refactor the tests to check for both single file and subdirectory inference
- I moved things around, mostly reusing the code from `inferred_bins` - hopefully I didn't break anything, but it won't hurt to double check :)
- Do we have something like servo's `tidy` check for coding style? I'm open for suggestions if something isn't formatted correctly
- Just a general one - should I rebase + squash commits every time I make subsequent changes to cargo?